home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
071-080
/
amok71
/
xstat
/
xstat.doc
< prev
next >
Wrap
Text File
|
1993-11-04
|
10KB
|
382 lines
XStat V1.03 Documentation
=========================
IMPORT StdDisclaimer; (* in short: use it at your own risk *)
XStat was carefully tested, but there's certainly plenty of room for bugs.
XStat V1.03 is Freeware, non-commercial distribution is o.k. as long as
the following conditions are satisfied:
* Source, executables and documentation must be distributed together
(XStat.mod, XStat, XStatFPU, XStat.data, XStat.doc, XStat.dok and Make),
and these files must be intact (you're not allowed to make changes).
* Disk librarians: you may charge no more than the current price
of a single AmigaLibDisk from Fred Fish
XStat requires AmigaOS V36 or later.
Purpose
=======
XStat extracts statistic information from the Xferstat file created
by Andrew "Charly" Kopp's UUCiCo V1.15c (or later). The most important
information XStat gives to you is the phone cost for a certain number
of connects.
Installation
============
The distribution includes two executables,
* XStat (standard version)
* XStatFPU (680(2|3)0 + 6888(1|2) required)
Copy one of these to a dircetory in your "Path", preferably UUBIN:
There's only one more file that needs to be installed; it's called
"XStat.data", and should be copied to your UULIB: directory.
You'll have to edit XStat.data to complete the installation.
XStat.data
==========
XStat.data contains the phone cost on a "per host" basis, in the following
format:
XStat.data file header:
-----------------------
H XSTAT DATA
This header must be the first line of XStat.data
XStat.data comment line:
------------------------
# any comments you wish to add to XStat.data
You may add comment lines anywhere in your XStat.data file, except before
the file header.
XStat.data currency sign info:
------------------------------
S <currency sign>
Tells XStat the currency sign for your country. This line must come before
the first "N"-line. There can be only one "S"-line in your XStat.data file.
Examples:
# currency sign for the U.S.A.
S $
# currency sign for Germany
S DM
XStat.data host name info:
--------------------------
N <host name>
Starts a new connection cost data record. Must be followed by at least
one "C"-line. <host name> should be the name of a host you're directly
connected to, without any path or domain information.
Examples:
# my own newsfeed
N imart
# my alternate newsfeed
N cbmger
XStat.data connection time/cost info:
-------------------------------------
C <start time> <duration> <price>
Tells XStat that between <start time> and <start time of next C-line>
a connection will cost <price> per <duration>. "C"-lines must follow
a "N"-line. <duration> must be in seconds, <price> in the currency of
your choice.
The first "C"-line must be for "SU-00:00:00"!
Example:
N imart
C SU-00:00:00 120 0.23
C MO-08:00:00 60 0.23
C MO-18:00:00 120 0.23
From Sunday 0:00:00 to Monday 7:59:59, a connection between my
site and my newsfeed "imart" will cost 0.23DM/120sec.
Between Monday 8:00:00 and Monday 17:59:59, a connection between my site
and my newsfeed "imart" will cost 0.23DM/60sec.
With this short example, the connection cost for the rest of the
week (from Monday 18:00:00 to Saturday 23:59:59) would be 0.23DM/120sec.
Full length example for XStat.data:
-----------------------------------
- cut - cut - cut - cut - cut - cut - cut - cut - cut - cut - cut - cut - cut -
H XSTAT DATA
#==============================================================================
# XStat connection cost data file
#==============================================================================
#
#------------------------------------------------------------------------------
# currency sign for Germany; S must come before first N
#------------------------------------------------------------------------------
S DM
#
#------------------------------------------------------------------------------
# my own newsfeed, connection cost is 0.23/60sec (0.23/120sec night & weekend)
#------------------------------------------------------------------------------
N imart
C SU-00:00:00 120 0.23
C MO-08:00:00 60 0.23
C MO-18:00:00 120 0.23
C TU-08:00:00 60 0.23
C TU-18:00:00 120 0.23
C WE-08:00:00 60 0.23
C WE-18:00:00 120 0.23
C TH-08:00:00 60 0.23
C TH-18:00:00 120 0.23
C FR-08:00:00 60 0.23
C FR-18:00:00 120 0.23
#
#------------------------------------------------------------------------------
# cbmger, connection cost is 0.23/21sec (0.23/42sec night & weekend)
#------------------------------------------------------------------------------
N cbmger
C SU-00:00:00 42 0.23
C MO-08:00:00 21 0.23
C MO-18:00:00 42 0.23
C TU-08:00:00 21 0.23
C TU-18:00:00 42 0.23
C WE-08:00:00 21 0.23
C WE-18:00:00 42 0.23
C TH-08:00:00 21 0.23
C TH-18:00:00 42 0.23
C FR-08:00:00 21 0.23
C FR-18:00:00 42 0.23
#
- cut - cut - cut - cut - cut - cut - cut - cut - cut - cut - cut - cut - cut -
Usage
=====
XStat [?|-?|-h] [-dname] [-sname] [-v] [-fdate] [-tdate] [-i] [-o] [-nname]
You may also use the environment variable "XSTATARGS" to specify
parameters. This is very useful if you're using XStat from the
Workbench (XStat doesn't really support Workbench, that's why
there's no icon for it).
? | -? | -h
-----------
Displays a help message.
-dname
------
Tells XStat to read its connection cost data from file <name>.
<name> defaults to "UULIB:XStat.data".
-sname
------
Tells XStat to extract the statistic information from file <name>.
<name> defaults to "UUSPOOL:XferStat".
-v
--
Toggles the "verbose" mode. When on, XStat displays short statistics
for every connect found in the Xferstat file. Defaults to "off".
Specify "-v" to turn verbose mode on.
-fdate
------
Tells XStat to ignore connects before <date>. <date> defaults to "01-JAN-78".
You may use any valid AmigaDOS date string, including things like
"TODAY" or "YESTERDAY". XStat will add a time string of "00:00:00" internally,
you may not do this yourself.
-tdate
------
Tells XStat to ignore connects after <date>. <date> defaults to "TODAY".
You may use any valid AmigaDOS date string, including things like
"TODAY" or "YESTERDAY". XStat will add a time string of "23:59:59" internally,
you may not do this yourself.
-mdate
------
Tells XStat to ignore -f and -t, and to compute the statistics for the
specified month instead. The month must be given in the format "MMM-YY",
without specifying the day. Example: -mAPR-92 will compute the stats for
April 92. -m is inactive as default.
-i
--
Tells XStat to evaluate incoming calls; defaults to "on". Specify "-i"
to suppress evaluation of incoming calls.
-o
--
Tells XStat to evaluate outgoing calls; defaults to "on". Specify "-o"
to suppress evaluation of outgoing calls.
-q
--
Tells XStat to suppress non-fatal error messages; defaults to "off".
Specify "-q" to suppress non-fatal errors.
This is very handy for getting rid of those "(ignoring this one)" messages
for failed connects.
-nname
------
Tells XStat to evaluate calls to host <name> only; defaults to all hosts.
XStat's output
==============
Example:
> XStat V1.03
> © Copyright 1992 by Jürgen Weinelt
> XStat is Freeware - read the docs for details.
>
>
>
>
> Connection statistics for outgoing calls:
> -----------------------------------------
>
> connects 53
> online time 35421 sec ( 668 sec/connect)
> units 323 units ( 6.094 units/connect)
> cost 74.29 DM ( 1.402 DM/connect)
>
> brutto read 7493483 bytes ( 141386 bytes/connect)
> brutto send 882109 bytes ( 16643 bytes/connect)
> netto read 6526244 bytes ( 123136 bytes/connect)
> netto send 132519 bytes ( 2500 bytes/connect)
>
> ø brutto speed 236 cps ( 243 cps peak)
> ø netto speed 187 cps ( 200 cps peak)
> ø brutto cost 9.301 DM/MB
> ø netto cost 11.699 DM/MB
>
>
>
> Connection statistics for incoming calls:
> -----------------------------------------
>
> no connects recorded.
connects
--------
Number of connects.
online time
-----------
Total online time, and average online time per connect.
units
-----
Phone units consumed, and average phone units consumed per connect.
Note: in Germany, a "phone unit" is an indivisible time quantum
(sounds like quantum physics :-). This means, even if you're connect
is shorter than that, the phone company still charges for the entire
time quantum. Example: unit duration is 60 seconds, connect time was
97 seconds, phone company charges two units (120 seconds).
You can influence the unit duration by editing the XStat.data file;
the <duration> in the "C"-lines tells XStat the unit duration.
cost
----
Total cost, and average cost per connect.
brutto read
-----------
Total bytes read (including protocol information), and average (per connect).
brutto send
-----------
Total bytes sent (including protocol information), and average (per connect).
netto read
----------
Total bytes read (excluding protocol information), and average (per connect).
netto send
----------
Total bytes sent (excluding protocol information), and average (per connect).
ø brutto speed
--------------
Average transmission speed, including protocol overhead, and speed of
fastest connect.
ø netto speed
-------------
Average transmission speed, excluding protocol overhead, and speed of
fastest connect.
ø brutto cost
-------------
Average cost per MByte, including protocol overhead.
ø netto cost
------------
Average cost per MByte, excluding protocol overhead.
History
=======
V1.03 added monthly statistics.
V1.02 added peak brutto/netto cps rating.
V1.01 XStat used to guru when brutto or netto xfer was 0 bytes. Fixed.
V1.00 initial release.
Known problems/bugs
===================
None so far...
Well, actually, there's one problem I can't do anything about... the
online time is not very accurate. That's because the connection start
time states the time the modem says "CONNECT", not the real start
time of the (phone line) connection.
You can contact me through the Usenet:
{uunet|rutgers}!cbmvax!cbmehq!cbmger!imart!hcast!jow
(Sorry, no domain yet)
Or through the snail mail:
Jürgen Weinelt
Zur Kanzel 1
D-8783 Hammelburg
Germany
You might also try posting to comp.sys.amiga.programmer or alt.sys.amiga.uucp,
I'll probably read those newsgroups.
Enjoy!